#include <bits/stdc++.h>

using namespace std;

class Solution {
public:
	vector<string> findRelativeRanks(vector<int>& score)
	{
		auto res = vector(size(score), ""s);
		auto x = vector(size(score), 0);
		iota(begin(x), end(x), 0);
		sort(begin(x), end(x), [&](auto x, auto y) { return score[x] > score[y]; });
		for (int i = 0, len = size(score); i < len; i++)
			res[x[i]] = i == 0 ? "Gold Medal"s
				: i == 1	   ? "Silver Medal"s
				: i == 2	   ? "Bronze Medal"s
							   : to_string(i + 1);
		return res;
	}

private:
};

int main()
{
	Solution solution;
	return 0;
}
